<template>
	<view  >
		<!-- <video id="myvideo" :src="videosrc"></video> -->
		<web-view :src="videosrc"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				videosrc:'',
				sn:''
			};
		},
		onLoad(option) {
			this.sn = option.sn
			this.init()
		},
		methods:{
			init(){
				this.$api.post('/door_pass/get_video',{
					form:{
						sn:this.sn
					}
				}).then(res=>{
					this.videosrc = res.data.url
				})
			},
		}
	}
</script>

<style lang="scss">
#myvideo{
	width: 100%;
	height: 100%;
}
</style>
